<nz-card>
  <sf *ngIf="!isGeneralQuery" mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>

  <div class="my-md">
    <nz-input-group *ngIf="isGeneralQuery" [nzSuffix]="suffixIconSearch">
      <input
        type="text"
        [(ngModel)]="keyword"
        nz-input
        placeholder="类型代码/类型名称/代码/名称"
        (keyup.enter)="st.reset({ keyword: keyword })"
      />
    </nz-input-group>
    <ng-template #suffixIconSearch>
      <i nz-icon nzType="search" (click)="st.reset({ keyword: keyword })"></i>
    </ng-template>
    <button nz-button nzType="text" (click)="isGeneralQuery = !isGeneralQuery">{{ isGeneralQuery ? '高级查询' : '普通查询' }}</button>
    <span *ngFor="let item of toolbars">
      <button *ngIf="item.ifvar ? ifvars[item.ifvar] : true" nz-button (click)="(item.click)" [nzType]="'primary'">{{ item.name }}</button>
    </span>
  </div>
  <st #st [data]="url" [columns]="columns" (change)="stChange($event)"></st>
</nz-card>
